package com.xbongbong.saas.enums.dictionary;

import com.xbongbong.i18n.util.I18nMessageUtil;
import lombok.Getter;

/**
 * 数据字典-客户流失原因
 * @author haibin.zhang
 * @version v1.0
 * @date 2019/2/26 10:19
 * @since v1.0
 */
@Getter
public enum CustomerLossCaseEnum {

    // 客户流失原因
    COMPETITOR_WIN("1", "enum.customerLossCase.name.competitor_win", "competitorWin"),


    TOO_HIGH_PRICE("2", "enum.customerLossCase.name.too_high_price", "tooHighPrice"),


    DECISION_MAKER_NOT_SUPPORT("3", "enum.customerLossCase.name.decision_maker_not_support", "decisionMakerNotSupport"),


    NOT_MATCH_BUSINESS("4", "enum.customerLossCase.name.not_match_business", "notMatchBusiness"),


    OTHER("5", "enum.customerLossCase.name.other", "other"),
    ;

    private String code;
    private String name;
    private String attr;

    CustomerLossCaseEnum(String code, String name, String attr) {
        this.code = code;
        this.name = name;
        this.attr = attr;
    }

    public String getName() {
        return I18nMessageUtil.getMessage(name);
    }
}
